<tr>
    {% for good in offer.offer_goods %}
        <td>{% include "good.html" %}</td>
    {% endfor %}
    {% for good in offer.request_goods %}
        <td>{% include "good.html" %} (per 10)</td>
    {% endfor %}
    <td>{{offer.owner.user}}</td>
    <td>
    {% ifnotequal offer.owner.key account.key %}
        <form method="post" action="/market/buy">
            <input type="hidden" name="id" value="{{offer.key}}" />
            <input type="text" name="amount">
            <input type="submit" value="Buy" />
        </form>
    {% else %}
        {{offer.created_at|timesince}} old<br />
        <form method="post" action="/market/cancel">
            <input type="hidden" name="id" value="{{offer.key}}" />
            <input type="submit" value="Cancel" />
        </form>
    {% endifnotequal %}
    </td>
</tr>